package com.diandian.backend.eleme.retail.exchange.controller;

import com.diandian.backend.eleme.retail.exchange.req.SkuCategoryPropertyListReq;
import com.diandian.backend.eleme.retail.exchange.service.BusinessSkuCategoryManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 饿了吗 - 商品 - 商品分类管理
 */
@RestController
@RequestMapping("/business/sku/category/manage")
public class BusinessSkuCategoryManageController {

    @Autowired
    private BusinessSkuCategoryManageService businessSkuCategoryManageService;

    /**
     * 查询类目属性值列表
     *
     * @return
     * @throws Exception
     */
    @PostMapping("/skuCategoryPropertyList")
    public Object skuCategoryPropertyList(@RequestHeader(value = "source") String source,
                                          @RequestHeader(value = "secret") String secret,
                                          @RequestBody SkuCategoryPropertyListReq data) throws Exception {
        return businessSkuCategoryManageService.skuCategoryPropertyList(source, secret, data);
    }
}
